/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package Test.Moteur;

//~--- non-JDK imports --------------------------------------------------------

import Risk.Moteur.Continent;
import Risk.Moteur.Pays;
import Risk.Moteur.Plateau;

//~--- JDK imports ------------------------------------------------------------

import java.io.File;

/**
 *
 * @author alex
 */
public class TestPlateau {
    public static void main(String[] args) {
        Plateau p = new Plateau();

        p.initialisationContinents("." + File.separator + "src" + File.separator + "Risk" + File.separator + "Moteur"
                                   + File.separator + "donnee" + File.separator + "renfort_continents.prn");
        p.intialiseFrontiere("." + File.separator + "src" + File.separator + "Risk" + File.separator + "Moteur"
                             + File.separator + "donnee" + File.separator + "voisins.prn");

        for (Continent conti : p.getContinents()) {
            System.out.println("");
            System.out.println("#################################");
            System.out.println("" + conti.getNom());
            System.out.println("#################################");

            for (Pays pa : conti.getPaysContinent()) {
                System.out.println("**********************");
                System.out.println("" + pa.getNom());
                System.out.println("**********************");

                for (Pays voisin : pa.getVoisins()) {
                    System.out.println("" + voisin.getNom());
                }
            }
        }
    }
}
